<?php
function toc_filter($content) {
	if(is_home()){
		return preg_replace_callback(
	        "/<div class=[\"']toc[\"']>.*<\/div>/siU",
	        "toc",
	        $content
   		 );
	}
	else{
		return $content;
	}
	
}
function toc(&$match) {
	return '';
}
add_filter('the_content', 'toc_filter');
?>